package org.shan.lf.common.exception;

import lombok.Data;

/**
 * Created by amanda.shan on 2019/7/1.
 */
@Data
public class LfServiceException extends RuntimeException {

    private String code;

    private String describe;

    public LfServiceException() {
    }

    public LfServiceException(String code, String describe) {
        super(describe);

        this.code = code;
        this.describe = describe;
    }

    public LfServiceException(String message) {
        super(message);
    }

    public LfServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public LfServiceException(Throwable cause) {
        super(cause);
    }

    public LfServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
